package org.biz.modules.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.biz.modules.entity.SysRole;
import org.biz.modules.mapper.SysRoleMapper;
import org.biz.modules.service.SysRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getRoleListByUserId(String userId) {
        return sysRoleMapper.getRoleListByUserId(userId);
    }
}
